package cn.com.tbshuda.gateway.controller;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author shuDa
 * @date 2021/12/8
 **/
@RestController
public class LoginController {
    @GetMapping("/login/{name}")
    @SentinelResource("dologin")
    public String doLogin(@PathVariable("name") String name) {
        return "hello " + name;
    }
}
